package com.pajk.user.dal.index;

import java.io.Serializable;

/**
 * @author Haomin Liu
 */
public class AsyncIndexTask<KeyType, ValueType> implements Serializable{
    public static final Integer ACTION_PUT = 1;
    public static final Integer ACTION_REMOVE = 2;

    AsyncIndexTask(Integer action, Integer domain, KeyType key, ValueType value){
        this.action = action;
        this.domain = domain;
        this.key = key;
        this.value = value;
    }
    public final Integer action;
    public final Integer domain;
    public final KeyType key;
    public final ValueType value;
}
